package com.cheikh.lazywaimai.network.service;

import com.cheikh.lazywaimai.model.bean.Feedback;
import com.cheikh.lazywaimai.model.bean.Setting;

import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import rx.Observable;

public interface CommonService {

    /**
     * 获取应用配置
     * @return
     */
    @GET("api/settings")
    Observable<Setting> settings();

    /**
     * 提交意见反馈
     * @return
     */
    @POST("api/feedbacks")
    Observable<Feedback> feedback(@Body Feedback feedback);
}